package SE2;

import static org.junit.Assert.*;

import java.util.GregorianCalendar;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class StoreSituationTest {

	StoreSituation storeSituation;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		storeSituation = new StoreSituation();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testSendCheckResult() {
		fail("Not yet implemented");
	}

	@Test
	public void testSetDate() {
		
		storeSituation = new StoreSituation();
		storeSituation.setDate(new GregorianCalendar(2010, 05, 01));
		assertEquals(new GregorianCalendar(2010, 05, 01), storeSituation.getDate());
		
		//fail("Not yet implemented");
	}

	@Test
	public void testGetDate() {
		storeSituation = new StoreSituation();
		storeSituation.setDate(new GregorianCalendar(2010, 05, 01));
		assertEquals(new GregorianCalendar(2010, 05, 01), storeSituation.getDate());
				
		//fail("Not yet implemented");
	}

	@Test
	public void testSetProductAtStore() {
		storeSituation = new StoreSituation();
		storeSituation.setProductAtStore("Prod1");
		assertEquals("Prod1", storeSituation.getProductAtStore());
		
		//fail("Not yet implemented");
	}

	@Test
	public void testGetProductAtStore() {
		storeSituation = new StoreSituation();
		storeSituation.setProductAtStore("Prod1");
		assertEquals("Prod1", storeSituation.getProductAtStore());
		
		//fail("Not yet implemented");
	}

}
